package cn.qh.test01.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

import lombok.*;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * (Department)表实体类
 *
 * @author makejava
 * @since 2021-10-27 08:52:03
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "Department")
@SuppressWarnings("serial")
public class Department extends Model<Department> {
    @TableId(type = IdType.AUTO)
    private int id; //主键


    @TableField(value = "name")
    private String name;
    @TableField(value = "createdTime", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime; //创建时间


    @TableField(value = "updatedTime", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime; //修改时间


    @Version
    private int version;   //版本


    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private int deleted;  //逻辑删除标志


}
